﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TreaShares.Backoffice.Controlers;
using TreaShares.Backoffice.DataLayer;

namespace TreaShares.Backoffice.User
{
    public partial class GL : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) 
            {
                this.txtSummaryFrom.Text = DateTime.Now.ToShortDateString();
            }
        }

        protected void btnTransactionSummary_Click(object sender, EventArgs e)
        {
            GLManager gl = new GLManager();
            gl.CalcLedger(this.Master.OrgBasicInfo.Id, DateTime.Parse(this.txtSummaryFrom.Text));
        }
    }
}